import requests #网络请求
import re
import time

url = "https://www.pornzee.com/?mode=async&function=get_block&block_id=list_videos_most_recent_videos&sort_by=post_date&from=01"
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36',
    'Accept-Language': 'zh-CN,zh;q=0.8'}
html = requests.get(url, headers=headers).text
pattern = re.compile('<a href="(.*?)" title=.*?><div class="img">.*?<strong class="title">(.*?)</strong>',re.S)
items = re.findall(pattern, html)
for item in items:
    print(item)
    # res=requests.get(item[0], headers=headers).text
    # time.sleep(10);
    # print(res);
    # pat = re.compile('<div class="fp-player".*?"><video src="(.*?)" class="fp-engine" preload="metadata" x-webkit-airplay="allow" webkit-playsinline="true" playsinline="true"></video>', re.S)
    # data = re.findall(pat, res)
    # print(data);


